package com.talent.web.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.talent.web.model.dto.AllocationPermissionDto;
import com.talent.web.model.dto.SysRoleDto;
import com.talent.web.model.entity.SysRole;
import com.talent.web.model.query.RoleQuery;
import com.talent.web.model.vo.OptionVo;

import java.util.List;

/**
 * @ClassName：ISysRoleService
 * @Author: hszhou
 * @Date: 2024/10/22 8:54
 * @Description:  系统角色相关接口
 */
public interface ISysRoleService extends IService<SysRole> {


    void saveRole(SysRoleDto sysRoleDto);

    void deleteRoleById(Long id);

    void updateRole(SysRoleDto sysRoleDto);

    IPage<SysRole> page(int current, int pageSize, RoleQuery query);

    List<OptionVo> option();

    void allocationPermission(AllocationPermissionDto dto);


    List<String> hasPermission(Long roleId);
}
